//package com.fecean.aabbc.netty.handler5;
//
//import com.fecean.aabbc.netty.message5.MessageBuilder;
//import com.fecean.aabbc.netty.message5.MessageTypeEnum;
//import io.netty.channel.ChannelHandler;
//import io.netty.channel.ChannelHandlerContext;
//import io.netty.channel.ChannelInboundHandlerAdapter;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.stereotype.Component;
//
///**
// * NettyNoticeChannelHandler
// *
// * @author: chenfenghai
// * @version: 1.0
// * @date: 2020-03-05 15:59
// * @blame Team
// */
//@Slf4j
//@Component
//@ChannelHandler.Sharable
//public class NettyNoticeChannelHandler extends ChannelInboundHandlerAdapter {
//
//    @Override
//    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
//        MessageBuilder messageBuilder = MessageBuilder.readMessage(msg);
//        if(messageBuilder.isMessage(MessageTypeEnum.NOTICE)){
//            log.info("客户端[{}-{}]收到通知：{}", messageBuilder.getNoticeMessage().getTenantId(),
//                    messageBuilder.getNoticeMessage().getCinemaCode(), messageBuilder.getNoticeMessage());
//            return;
//        }
//        ctx.fireChannelRead(msg);
//
//    }
//}
